package com.cenntro.common.util.result;

import java.io.Serializable;

public class PageResult extends Result{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUId = -1748799085097935670L;
	private Serializable totalCount;
	
	
	public Serializable getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Serializable count) {
		this.totalCount = count;
	}
	
	
	private PageResult(Serializable count){
		this.totalCount = count;
	}
	public static PageResult ok(Object data, Serializable count) {
		PageResult pg = new PageResult(count);
		pg.setData(data);
		return pg;
	}
	
}
